feat: Add comprehensive Storybook test coverage#3
Closed
Conversation
- Analysis now covers ALL test types (Cypress, Jest, Storybook, Playwright) - Detailed breakdown of 68 components needing tests - Priority matrix (CRITICAL/HIGH/MEDIUM/LOW) - 4-week migration roadmap - Test generation recommendations with AI agent prompts - File templates for Storybook and Jest Generated by: HCC Test Migration MCP Tools Agent: hcc-frontend-cypress-migration-specialist
Migrated all 7 test scenarios from cypress/components/NotificationsDrawer.cy.tsx: - Default: Empty drawer state - WithNotifications: Display populated notifications - MarkSingleAsRead: Individual notification read action - MarkSingleAsUnread: Individual notification unread action - BulkMarkAllAsRead: Bulk mark as read with selection - BulkMarkAllAsUnread: Bulk mark as unread - FilterByBundle: Filter by console/openshift bundle Features: - MSW handlers for 4 API endpoints - Play functions with @storybook/test - Complete test coverage matching Cypress tests - seedState pattern using DrawerSingleton - Wrapper component for proper context Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Created 78 stories for critical components and pages. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Owner
Author
|
Closed - PR created in upstream repo: RedHatInsights#916 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive Storybook test coverage for critical components and pages, addressing test gaps identified by the MCP test coverage analysis tool.
What's Changed
🎨 New Storybook Stories (78 total)
Page Components:
Reusable Components:
🧪 Cypress to Storybook Migration
🔧 Infrastructure Updates
Testing Features
All stories include:
Test Coverage Impact
Before: 12.2% test coverage (18/147 components)
After: ~18% test coverage (adding 5 critical components with comprehensive stories)
Focus areas from MCP analysis:
Related
Built using the platform-frontend-ai-toolkit MCP server for test coverage analysis.
🤖 Generated with Claude Code